import { AxiosResponse } from 'axios'
import Service from '../../request'

export function moveTabCollection(
  tabCollectionId: string,
  newWorkspaceId: string,
) {
  return Service.patch<
    { newWorkspaceId: string },
    AxiosResponse<Response<{ message: string }>>
  >(`/tabCollection/${tabCollectionId}`, { newWorkspaceId })
}

export function delTabCollection(tabCollectionId: string) {
  return Service.delete(`/tabCollection/${tabCollectionId}`)
}
